<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head>
<%@ include file="../../include/easyui.jsp" %>
<%@ include file="../../include/pGrid.jsp" %>
<title>立项管理绑定合同编号</title>
<script>
	$(function(){
		var gridParam = {
			singleSelect:  false ,
			queryParams: {
				contractNo: 'NULL',
				contractNo_searchType: "eq"
			},
			url : '/console/com.fs.jzzn.pojo.Project/list',
			columns : [[ 
			     {field: 'ck', checkbox:true, width: 120}
			     	,{field: 'pNo', title: '工程路段编号', width: 130} 
			    	,{field: 'pRoad', title: '工程段落', width: 270}
			    	,{field: 'status', title: '项目状态', width: 120}
			    	,{field: 'pType', title: '专业类别', width: 80}
			    	,{field: 'contractNo', title: '订单编号', width: 240}
			    	,{field: 'pName', title: '项目名称', width: 250}
			    	,{field: 'budgetMoney', title: '立项预算', width: 90}
			    	,{field: 'actualMoney', title: '完工预算', width: 90}
			    	,{field: 'designLength', title: '设计长度', width: 80}
			    	,{field: 'pm', title: '项目经理', width: 100}
			    	,{field: 'marketManager', title: '市场负责人', width: 100}
			    	,{field: 'constructionUnit', title: '建设单位', width: 200}
			    	,{field: 'designUnit', title: '设计单位', width: 120}
			    	,{field: 'operator', title: '运营商', width: 120}
			    	,{field: 'ppm', title: '工程经理', width: 120}
			    	,{field: 'orgNo', title: '所属机构', width: 180,formatter: function(value,row,index){
						return (value || '') + '-' + (row.orgNoName|| '') ;
					}}
			    	,{field: 'pCreateDate', title: '订单日期', width: 120}
			    	,{field: 'subpackage', title: '是否分包', width: 120}
			    	,{field: 'subpackageScale', title: '分包比例', width: 120}
			    	,{field: 'region', title: '区域', width: 120}
			    	,{field: 'priority', title: '优先级', width: 120}
			    	,{field : 'remark',width : 150,title: '备注'}
			    	,{field: 'createTime', title: '创建时间', width: 130}
			    	,{field: 'createrName', title: '创建人', width: 120}
			]]
		};
		p.dataGrid = $(p.dataGrid).datagrid( $.extend({}, p.dataGridParam,gridParam));
		/*事件响应*/
		$("#buttons .easyui-linkbutton").on("click", function() {
			var motion_code = $(this).attr("motion_code");p.btnOneClick($(this));
			switch (motion_code) {
				case "05":
					p.gridQuery();
					break;
				default:
					break;
				}
		});
	});
	/*窗口确认回调方法*/
	function choose(){
		return p.dataGrid.datagrid('getSelections');
	}
</script>
</head>
<body class="easyui-layout">
	<!-- 但行高度33px，多行时 33乘以行数  -->
	<div data-options="region:'north',split:false,border:false" style="height:33px;">
		<div class="easyui-panel" data-options="fit:true,border:false">
			<!-- 查询条件表单，根据配置进行替换  -->
			<form id="queryForm" >
			 <input type="hidden" name="className" value="com.fs.jzzn.pojo.Project" />
			 <div style="margin-top:5px;margin-left:10px;float:left;">
			  <input class="easyui-textbox" name="pRoad" style="width:270px;" data-options="label:'工程段落:',required:false" />
			<input type="hidden" name="pRoad_searchType" value="like" />
			 </div>
			 <div style="margin-top:5px;margin-left:10px;float:left;">
			  <input class="easyui-textbox" name="pName" style="width:270px;" data-options="label:'项目名称:',required:false" />
			<input type="hidden" name="pName_searchType" value="like" />
			 </div>
			 <div id="buttons" style="margin-top:5px;margin-left:10px;float:left;">
			 	<a href="#" class="easyui-linkbutton" iconCls="icon-search" motion_code="05" plain="true">查询</a>
			 </div>
			</form>
		</div>
	</div>  

	<!-- 表格 -->
	<div region="center" border="false">
		<table id="dataGrid"></table>
	</div>
</body>
</html>